package tt.com.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import tt.com.business.mapper.CommonServTypeServiceMapper;
import tt.com.business.service.CommonServTypeService;
import tt.com.common.model.YxCommonServeType;


import java.util.List;

@Service
public class CommonServTypeServicelmpl extends ServiceImpl<CommonServTypeServiceMapper, YxCommonServeType> implements CommonServTypeService {

    @Override
    public ResponseEntity selectType() {
        List<YxCommonServeType> yxCommonServeTypes = baseMapper.selectList(null);
        if (yxCommonServeTypes.size()<0){
            return null;
        }
        return new ResponseEntity(yxCommonServeTypes, HttpStatus.OK);
    }
}
